package com.opal.modules.costReportForm.entity.table;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CostBhExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CostBhExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBhIdIsNull() {
            addCriterion("bh_id is null");
            return (Criteria) this;
        }

        public Criteria andBhIdIsNotNull() {
            addCriterion("bh_id is not null");
            return (Criteria) this;
        }

        public Criteria andBhIdEqualTo(Long value) {
            addCriterion("bh_id =", value, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdNotEqualTo(Long value) {
            addCriterion("bh_id <>", value, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdGreaterThan(Long value) {
            addCriterion("bh_id >", value, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bh_id >=", value, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdLessThan(Long value) {
            addCriterion("bh_id <", value, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdLessThanOrEqualTo(Long value) {
            addCriterion("bh_id <=", value, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdIn(List<Long> values) {
            addCriterion("bh_id in", values, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdNotIn(List<Long> values) {
            addCriterion("bh_id not in", values, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdBetween(Long value1, Long value2) {
            addCriterion("bh_id between", value1, value2, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhIdNotBetween(Long value1, Long value2) {
            addCriterion("bh_id not between", value1, value2, "bhId");
            return (Criteria) this;
        }

        public Criteria andBhPriceIsNull() {
            addCriterion("bh_price is null");
            return (Criteria) this;
        }

        public Criteria andBhPriceIsNotNull() {
            addCriterion("bh_price is not null");
            return (Criteria) this;
        }

        public Criteria andBhPriceEqualTo(BigDecimal value) {
            addCriterion("bh_price =", value, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceNotEqualTo(BigDecimal value) {
            addCriterion("bh_price <>", value, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceGreaterThan(BigDecimal value) {
            addCriterion("bh_price >", value, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bh_price >=", value, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceLessThan(BigDecimal value) {
            addCriterion("bh_price <", value, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bh_price <=", value, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceIn(List<BigDecimal> values) {
            addCriterion("bh_price in", values, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceNotIn(List<BigDecimal> values) {
            addCriterion("bh_price not in", values, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bh_price between", value1, value2, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bh_price not between", value1, value2, "bhPrice");
            return (Criteria) this;
        }

        public Criteria andBhTakeIsNull() {
            addCriterion("bh_take is null");
            return (Criteria) this;
        }

        public Criteria andBhTakeIsNotNull() {
            addCriterion("bh_take is not null");
            return (Criteria) this;
        }

        public Criteria andBhTakeEqualTo(Date value) {
            addCriterion("bh_take =", value, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeNotEqualTo(Date value) {
            addCriterion("bh_take <>", value, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeGreaterThan(Date value) {
            addCriterion("bh_take >", value, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeGreaterThanOrEqualTo(Date value) {
            addCriterion("bh_take >=", value, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeLessThan(Date value) {
            addCriterion("bh_take <", value, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeLessThanOrEqualTo(Date value) {
            addCriterion("bh_take <=", value, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeIn(List<Date> values) {
            addCriterion("bh_take in", values, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeNotIn(List<Date> values) {
            addCriterion("bh_take not in", values, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeBetween(Date value1, Date value2) {
            addCriterion("bh_take between", value1, value2, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhTakeNotBetween(Date value1, Date value2) {
            addCriterion("bh_take not between", value1, value2, "bhTake");
            return (Criteria) this;
        }

        public Criteria andBhLoseIsNull() {
            addCriterion("bh_lose is null");
            return (Criteria) this;
        }

        public Criteria andBhLoseIsNotNull() {
            addCriterion("bh_lose is not null");
            return (Criteria) this;
        }

        public Criteria andBhLoseEqualTo(Date value) {
            addCriterion("bh_lose =", value, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseNotEqualTo(Date value) {
            addCriterion("bh_lose <>", value, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseGreaterThan(Date value) {
            addCriterion("bh_lose >", value, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseGreaterThanOrEqualTo(Date value) {
            addCriterion("bh_lose >=", value, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseLessThan(Date value) {
            addCriterion("bh_lose <", value, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseLessThanOrEqualTo(Date value) {
            addCriterion("bh_lose <=", value, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseIn(List<Date> values) {
            addCriterion("bh_lose in", values, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseNotIn(List<Date> values) {
            addCriterion("bh_lose not in", values, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseBetween(Date value1, Date value2) {
            addCriterion("bh_lose between", value1, value2, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhLoseNotBetween(Date value1, Date value2) {
            addCriterion("bh_lose not between", value1, value2, "bhLose");
            return (Criteria) this;
        }

        public Criteria andBhStatusIsNull() {
            addCriterion("bh_status is null");
            return (Criteria) this;
        }

        public Criteria andBhStatusIsNotNull() {
            addCriterion("bh_status is not null");
            return (Criteria) this;
        }

        public Criteria andBhStatusEqualTo(Boolean value) {
            addCriterion("bh_status =", value, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusNotEqualTo(Boolean value) {
            addCriterion("bh_status <>", value, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusGreaterThan(Boolean value) {
            addCriterion("bh_status >", value, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("bh_status >=", value, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusLessThan(Boolean value) {
            addCriterion("bh_status <", value, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("bh_status <=", value, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusIn(List<Boolean> values) {
            addCriterion("bh_status in", values, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusNotIn(List<Boolean> values) {
            addCriterion("bh_status not in", values, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("bh_status between", value1, value2, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("bh_status not between", value1, value2, "bhStatus");
            return (Criteria) this;
        }

        public Criteria andBhRemarkIsNull() {
            addCriterion("bh_remark is null");
            return (Criteria) this;
        }

        public Criteria andBhRemarkIsNotNull() {
            addCriterion("bh_remark is not null");
            return (Criteria) this;
        }

        public Criteria andBhRemarkEqualTo(String value) {
            addCriterion("bh_remark =", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkNotEqualTo(String value) {
            addCriterion("bh_remark <>", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkGreaterThan(String value) {
            addCriterion("bh_remark >", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("bh_remark >=", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkLessThan(String value) {
            addCriterion("bh_remark <", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkLessThanOrEqualTo(String value) {
            addCriterion("bh_remark <=", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkLike(String value) {
            addCriterion("bh_remark like", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkNotLike(String value) {
            addCriterion("bh_remark not like", value, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkIn(List<String> values) {
            addCriterion("bh_remark in", values, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkNotIn(List<String> values) {
            addCriterion("bh_remark not in", values, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkBetween(String value1, String value2) {
            addCriterion("bh_remark between", value1, value2, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andBhRemarkNotBetween(String value1, String value2) {
            addCriterion("bh_remark not between", value1, value2, "bhRemark");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNull() {
            addCriterion("pk_org is null");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNotNull() {
            addCriterion("pk_org is not null");
            return (Criteria) this;
        }

        public Criteria andPkOrgEqualTo(String value) {
            addCriterion("pk_org =", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotEqualTo(String value) {
            addCriterion("pk_org <>", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThan(String value) {
            addCriterion("pk_org >", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThanOrEqualTo(String value) {
            addCriterion("pk_org >=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThan(String value) {
            addCriterion("pk_org <", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThanOrEqualTo(String value) {
            addCriterion("pk_org <=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLike(String value) {
            addCriterion("pk_org like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotLike(String value) {
            addCriterion("pk_org not like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgIn(List<String> values) {
            addCriterion("pk_org in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotIn(List<String> values) {
            addCriterion("pk_org not in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgBetween(String value1, String value2) {
            addCriterion("pk_org between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotBetween(String value1, String value2) {
            addCriterion("pk_org not between", value1, value2, "pkOrg");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}